// 全局样式
@use '../mixins/mixins.scss' as *;
@use '../mixins/function.scss' as *;

page,
body {
  // 修复点击view标签的时候会有蓝色遮罩
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  background-color: #{getCssVar('bg-color')};
  font-size: #{getCssVar('font-size')};
  color: #{getCssVar('text-color')};
}

// 隐藏滚动条
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
}

// 设置ios设备底部安全区域高度设置
@include b('u-safe-area') {
  padding-bottom: 0;
  padding-bottom: constant(safe-area-inset-bottom) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
  @include m('more') {
    padding-bottom: 20rpx;
    padding-bottom: calc(constant(safe-area-inset-bottom) + 20rpx) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx) !important;
  }
}
